package com.hkts.beltweigher.master.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author hml
 * @since 2024-04-23
 */
public class User extends Model<User> {

private static final long serialVersionUID=1L;

                            private String id;
    /**
     * 省市县地址
     */
        private String address;
    /**
     * 用户头像
     */
        private String avatar;
    /**
     * 描述/详情/备注
     */
        private String description;
    /**
     * 邮件
     */
        private String email;
    /**
     * 手机
     */
        private String mobile;
    /**
     * 昵称
     */
        private String nickName;
    /**
     * 密码强度
     */
        private String passStrength;
    /**
     * 密码
     */
        private String passWord;
    /**
     * 性别
     */
        private String sex;
    /**
     * 状态 默认0正常 -1拉黑
     */
        private String status;
    /**
     * 街道地址
     */
        private String street;
    /**
     * 用户类型 0普通用户 1管理员
     */
        private Integer type;
    /**
     * 前台用户使用  用户等级 1 一级用户 2 二级用户
     */
        private Integer userLevel;
    /**
     * 用户名
     */
        private String userName;
    /**
     * 所属部门id
     */
        private String departmentId;
        private String createBy;
        private LocalDateTime createTime;
        private Integer delFlag;
        private String updateBy;
        private LocalDateTime updateTime;
    /**
     * 岗位id
     */
        private String postId;
    /**
     * 最近登录时间
     */
        private LocalDateTime updateLastTime;
    /**
     * openid
     */
        private String openId;
    /**
     * 是否是后台管理员0不是，1是
     */
        private Integer isBackstage;


    public String getId(){
            return id;
            }

        public void setId(String id) {
            this.id = id;
            }

    public String getAddress(){
            return address;
            }

        public void setAddress(String address) {
            this.address = address;
            }

    public String getAvatar(){
            return avatar;
            }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
            }

    public String getDescription(){
            return description;
            }

        public void setDescription(String description) {
            this.description = description;
            }

    public String getEmail(){
            return email;
            }

        public void setEmail(String email) {
            this.email = email;
            }

    public String getMobile(){
            return mobile;
            }

        public void setMobile(String mobile) {
            this.mobile = mobile;
            }

    public String getNickName(){
            return nickName;
            }

        public void setNickName(String nickName) {
            this.nickName = nickName;
            }

    public String getPassStrength(){
            return passStrength;
            }

        public void setPassStrength(String passStrength) {
            this.passStrength = passStrength;
            }

    public String getPassWord(){
            return passWord;
            }

        public void setPassWord(String passWord) {
            this.passWord = passWord;
            }

    public String getSex(){
            return sex;
            }

        public void setSex(String sex) {
            this.sex = sex;
            }

    public String getStatus(){
            return status;
            }

        public void setStatus(String status) {
            this.status = status;
            }

    public String getStreet(){
            return street;
            }

        public void setStreet(String street) {
            this.street = street;
            }

    public Integer getType(){
            return type;
            }

        public void setType(Integer type) {
            this.type = type;
            }

    public Integer getUserLevel(){
            return userLevel;
            }

        public void setUserLevel(Integer userLevel) {
            this.userLevel = userLevel;
            }

    public String getUserName(){
            return userName;
            }

        public void setUserName(String userName) {
            this.userName = userName;
            }

    public String getDepartmentId(){
            return departmentId;
            }

        public void setDepartmentId(String departmentId) {
            this.departmentId = departmentId;
            }

    public String getCreateBy(){
            return createBy;
            }

        public void setCreateBy(String createBy) {
            this.createBy = createBy;
            }

    public LocalDateTime getCreateTime(){
            return createTime;
            }

        public void setCreateTime(LocalDateTime createTime) {
            this.createTime = createTime;
            }

    public Integer getDelFlag(){
            return delFlag;
            }

        public void setDelFlag(Integer delFlag) {
            this.delFlag = delFlag;
            }

    public String getUpdateBy(){
            return updateBy;
            }

        public void setUpdateBy(String updateBy) {
            this.updateBy = updateBy;
            }

    public LocalDateTime getUpdateTime(){
            return updateTime;
            }

        public void setUpdateTime(LocalDateTime updateTime) {
            this.updateTime = updateTime;
            }

    public String getPostId(){
            return postId;
            }

        public void setPostId(String postId) {
            this.postId = postId;
            }

    public LocalDateTime getUpdateLastTime(){
            return updateLastTime;
            }

        public void setUpdateLastTime(LocalDateTime updateLastTime) {
            this.updateLastTime = updateLastTime;
            }

    public String getOpenId(){
            return openId;
            }

        public void setOpenId(String openId) {
            this.openId = openId;
            }

    public Integer getIsBackstage(){
            return isBackstage;
            }

        public void setIsBackstage(Integer isBackstage) {
            this.isBackstage = isBackstage;
            }

    public static final String ID ="id";

    public static final String ADDRESS ="address";

    public static final String AVATAR ="avatar";

    public static final String DESCRIPTION ="description";

    public static final String EMAIL ="email";

    public static final String MOBILE ="mobile";

    public static final String NICK_NAME ="nick_name";

    public static final String PASS_STRENGTH ="pass_strength";

    public static final String PASS_WORD ="pass_word";

    public static final String SEX ="sex";

    public static final String STATUS ="status";

    public static final String STREET ="street";

    public static final String TYPE ="type";

    public static final String USER_LEVEL ="user_level";

    public static final String USER_NAME ="user_name";

    public static final String DEPARTMENT_ID ="department_id";

    public static final String CREATE_BY ="create_by";

    public static final String CREATE_TIME ="create_time";

    public static final String DEL_FLAG ="del_flag";

    public static final String UPDATE_BY ="update_by";

    public static final String UPDATE_TIME ="update_time";

    public static final String POST_ID ="post_id";

    public static final String UPDATE_LAST_TIME ="update_last_time";

    public static final String OPEN_ID ="open_id";

    public static final String IS_BACKSTAGE ="is_backstage";

@Override
protected Serializable pkVal(){
            return this.id;
        }

@Override
public String toString() {
        return "User{" +
                ", id=" + id +
                ", address=" + address +
                ", avatar=" + avatar +
                ", description=" + description +
                ", email=" + email +
                ", mobile=" + mobile +
                ", nickName=" + nickName +
                ", passStrength=" + passStrength +
                ", passWord=" + passWord +
                ", sex=" + sex +
                ", status=" + status +
                ", street=" + street +
                ", type=" + type +
                ", userLevel=" + userLevel +
                ", userName=" + userName +
                ", departmentId=" + departmentId +
                ", createBy=" + createBy +
                ", createTime=" + createTime +
                ", delFlag=" + delFlag +
                ", updateBy=" + updateBy +
                ", updateTime=" + updateTime +
                ", postId=" + postId +
                ", updateLastTime=" + updateLastTime +
                ", openId=" + openId +
                ", isBackstage=" + isBackstage +
        "}";
        }
        }
